package cn.itsource.basic.mapper;

import cn.itsource.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    List<T> findAll();

    T findOne(Long id);

    void add(T t);

    void update(T t);

    void delete(Long id);

    //批量删除
    void patchdel(Long[] ids);

    Integer queryCount(BaseQuery query);
    List<T> queryData(BaseQuery query);

}
